Use float for pixelRatio. Fix #397