def save(self):
        if self.cache and not self.is_cached:
            image_str = StringIO.StringIO()
            # not much other supports than png, yet works
            self.pil.save(image_str, 'png')
            self.cache.set(self.cached_name, image_str.getvalue())
            image_str.close()
Save the image to the cache if provided and not cached yet.
dataset/ETHPy150Open vinyll/django-imagefit/imagefit/models.py/Image.save