photos controller rerives photos for index and show page