Added Windows8/WP8 fix for devicePixelRatio value