Fixes BitmapData size for masked image and draw()

Addresses width=0 issues of #520