Updated to make the pixelratio fix check for change in pixel ratio via browser zoom