Only set the viewport once, as this was causing some weirdness. Also this requires using a patched version of the resemble node module from the pull request here: https://github.com/kpdecker/node-resemble/pull/1