fixed bug with regX and regY on BitmapAnimation