better pixel ratio handling