update pic uploading api