Touch detection for showing images.