Click a thumbnail to view an image