bitmapData object functionality and cleanup