pixel.grid function

Return the pixel grid for an image