Fixes BitmapData size for masked image and draw()