def change_image_settings(self, image_settings):
        """Change image settings and replace surface.

        Only does so if the given image settings are
        different than the ones currently in use.
        """
        if self.image_settings == image_settings:
            return

        self.image = IMAGE_SURFS_DB[self.image_path][image_settings]

        self.image_settings = image_settings
Change image settings and replace surface.

        Only does so if the given image settings are
        different than the ones currently in use.
        
nodezator/imagesman/cache.py