Viewer: add resolution parameter.