update hover & clicked states of images