fixed mipmaping on upload side