modified to allow resizing the internal widgets when the window resizes
Cleaned up the code creating an ImageFrame class to remove duplicated code. Only load the images when both left and right have been set. This substantially improves performance when rerunning the script on a comparison file that has already been processed.