Added support for output width and height (ow, oh) and dpi.