changing devicePixelRatio to resize function