Add a way to calculate the center of a shape