Bitmap memory allocations now freed properly