generate mipmap after texture is uploaded