Fixed the memory allocation issues with the bitmap in Gallery view.