Better support for odd window shapes

This fixes several issues with odd window shapes. (Narrow and long, and also the transition to the mobile size.) The min-aspect-ratio may not be perfect, so I will fix it if it isn't. It should be within a few pixels of correct. There is one remaining spot where the red background image gets messed up, but it is a very odd window size so I'm not going to mess with it.