function to convert a pixel (cell) number to a polygon outlining that pixel