Click on a thumbnail to view an image