Preventing subpixel rounding errors