change flash mask to scaled bmp