def reset_body_height_and_image(self):
        """Calculate and set body height and create new image."""
        ### the body height is equivalent to the interval
        ### between the top rectsman's bottom and the bottom
        ### rectsman's top
        self.body.rect.height = self.bottom_rectsman.top - self.top_rectsman.bottom

        ### create and store a new surface for the body
        self.body.image = self.create_body_surface()
Calculate and set body height and create new image.
nodezator/graphman/callablenode/vizprep/bodysetup/main.py