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.
Merge pull request #11866 from bmarkovic/patch-1

Added bitmap size and clipping to rasterize.js