Progress indicator for uploading images - only add image if upload was successful