pixeldetect on grid