Keep aspect ratio with no OpenGL

Now the "keep aspect ratio" feature functions even when OpenGL is not employed.