Added functionality to display all photos