Refactor ListPhotos Controller