Im that thread you had numerous suggestions but, to be honest, I'm not sure which ones apply to my current issue.
I'd start with the bit that begins:
In my script file, I would want to achieve the following:
One of the points I was trying to make was that it would be a lot of work to maintain the association of a checkbox to an image, which you could avoid by automating. Of course, it partly depends on whether you're looking to swap the same images for all of them, or if you'd have different images associated with each checkbox.