Swap images according to the color attribute selected by the configurable product.
Inspired by http://blog.baobaz.com/en/blog/magento-reload-color-images-for-configurable-product
Tested on Community 1.7 , Enterprise 1.12.
Feel free to fork !
Kudos
Gayan