Xvfb non-maximizing issue fix

Under Xvfb, chrome enlarges just to 1050 px and FF to 1200 px when maximized no matter the screen dimensions are.

This assumes that the screen has at least 1280px, so when the image is too small, it enlarges the width to 1280px. Height maximization works correctly so far.