resizing svg canvas, making sure sizing derived everywhere from canvas