Fixed view_photos()