title: How to change configurable product main image by associated product image based on color and size attributes?
body: <p>I am using configurable product with size and color attributes. I want to change the main-image on configurable-product view as per the options chosen Like If I choose red-color then image of associated-product which has red color attribute value should display on main-image as soon as I choose the option.</p>
  
  <p>How can I do that??</p>
  
  <p>Thank you...</p>