Fix uploading of photos