Clicking a thumbnail displays the photograph