Changed fallback pixelRatio to use Math.round