Fix class cast error when reusing bitmap for Atlas then TileAtlas