added option to specify zoom level
added right/left margin support
added top/bottom margin support
added scale/quality parameters, not tested yet