implement auto mipmap generation for compressed textures