Added bitmap size and clipping to rasterize.js

Added support for defining window/viewport size and eventual clipping to bitmap rasterization similar to how it is used with paper output.