Click on a thumbnail to view the image