mipmap generation fixed