process as image/canvas depending on pixel ratio (stops dodgy un anti-aliased lines on canvas)