Added devicePixelRatio detection from PicturePolyfill

Used elements of PicturePolyfill
(https://github.com/verlok/picturePolyfill) to implement
devicePixelRatio in the form of 1x 2x rather than media query