Added centroid, xarray, yarray, rebin.