Work with device pixel ratio