added click functionality to images