Fixed finding the geometric center of the figures