Fixed null bitmap threading issue