change upload_avatar api