added click functionality for images