Refactor UploadPhoto to take photo params.