add image click handler