Added mass centers

Centers are now obtained from resulting contours.