Click an image to open the gallery view