Fixes to bitmapData.draw and graphics.beginFill