scaled image data to minimum, and generate mipmaps