wait for image to finish uploading