Well, that's something you're going to have to figure out, I just looked at the page and figured it out... but you could do something like:
<img src="blah-<?= $color ?>-blah.jpg">
I'unno fer sure how they did it, but that'll do it if you already have the rest of the code written up...