Add HiDPI detection

This method of HiDPI ("Retina" in Apple proprietary version) detection is much better than devicePixelRatio checking.
let's add it to comment