added figure to track centroid