corrected type in devicePixelRatio