some refactors, new ListPhotos class