Added function to display a list of photos for a user