bug fix for flash in bitmap data creation