Fix wrong pixel format specified for upload