Removes extra error checking in photo uploading.