fix click handling of images