Fixes logic to get to (x,y+1) byteIndex for antialiasing