I added BeckyEbook's code for the image fitting and I quite like it. Much simpler than what I was playing with. With the image fitted to the window, I don't really care if the dimensions are at the top or bottom.
Link for the version with the image fit to window is:
Sigil-2.7.6-Windows-x64-Setup.exe.