Attempt to better guess the initial size of the window when viewing images