Fix for Bitmap rendering and clearing in Flash