fixes rounding to 0 for getpixelxy