arbitrary rectangle mip mapping for texture atlases