def __init__(
        self,
        image_path,
        image_settings,
        coordinates_name="topleft",
        coordinates_value=(0, 0),
    ):
        """Store arguments, set image and rect."""
        ### store arguments

        self.image_path = image_path
        self.image_settings = image_settings

        ### set image and rect

        self.image = IMAGE_SURFS_DB[image_path][image_settings]

        rect = self.rect = self.image.get_rect()
        setattr(rect, coordinates_name, coordinates_value)
Store arguments, set image and rect.
nodezator/imagesman/cache.py