Necessary changes to avoid setting @photo to an invalid object.
Display all photos for a user