Image links

Hey, i know you can do this with Text links, but how do i go about it doing it with images?

I have a image that im using as a link button, once pressed and the window is opened, i want the image to change colour after clicked/visited.

In text its ‘Visited Link’ just never done it with images and dont know how to do it. Any ideas?

Thanks