fixes for several BitmapData memory leaks