AGS.Native: updated to correspond to changes in Bitmap class