Added base for contour's center of gravity finding