More reliable pixelRatio handling
More reliable pixelRatio handling