Allow for resizing of viewport

Unfortunately, for arbitrary sizes of the viewport, the SVG image does not centre properly.