Fixing references to old devicePixelRatio