This question already has an answer here:
I have around 1000 configurable products on my site. They can be changed by options of colour or size. I have the images of the configurable products in all the different colours available. What would be the best approach to making these images appear when you change the the colour option on the site?