prevent null bitmap crash