click a thumbnail to view the picture