May I suggest trying to use the files from the following github branch that have been updated for Zen Cart 1.5.7:
mc12345678/Attribute_image_Swap at 1_5_11 (github.com)
This reflects the files that I intend to upload to the plugins for the above discussed module.
There still are no real sql queries required to be run to support the image swap feature.
The only file that requires modification at this time is the admin/options_name_manager.php file to add the three additional selection options for swapping images. All other operation is basically provided through an observer.