Fixes logic to get to y-1, y and y+1 byteIndex for antialiasing