grid offset for drawPixel