Allow overriding width/height in writeImage.
The default values stay as the window (frame) width/height, but now you can
override them in the options object.  This is useful if you have a different
sized framebuffer object bound, for example.