added image click handler