functions for centering images on the centroid (center of mass)
excluding initial net setup, and only adding it once per session
minor