Tiled mip map generator for texture atlases