add pixelRatio to support mobile devices on line dash