target object loader now also computes the centroid of the object