Improved window positioning

Improved how the window is placed when opening images, changing images
and fitting images to monitor height.

One thing this fixes is that when OpenAtMousePosition is off images
should now always be placed in the center of the current monitor.