some refactoring of photo explore helper methods