use doubles in pixel scaling