unfortunately it is not that easy. It is pretty involved and very specific to what I am doing.
I added several functions that work side by side with this functionality to display these images as color options. It becomes a hack because I use the label in the drop down as a signifier for the name of the image that i want to display.
I have a newer version that basically uses a code signifier that is at the end of the label. For example, the color might be “Aqua Breeze” and it might have an admin code of “AQBR”. I ended up putting the admin code in the label. This will cause it to show up in the drop down, but my shoppers need to be able to see this color code anyways so it was a fine hack for me. So, the label would now read “Aqua Breeze (AQBR)” and it pulls the code off and looks for the image “AQBR.jpg”.