Fixes to BitmapManager.