Fix an issue with uploading a photo for the first time.