middlePixel function

Return the (approximate) middle pixel on a raster