Improve high device pixel ratio detecting

continue of https://github.com/bem/bem-bl/pull/540