Added centroid for line and circle