Allow resolution to be configured on command line. Default to 1280x1024.

How are the two `ScaleFactor(1.0)` determined here? Are they really always 1?