CmdLine defaultMain handles window resize to preserve aspect ratio