code: def add_filter(self, filter_):
          
          assert has_pil, _("Cannot add filters without python PIL")
          self.cache.basename += filter_.basename
          self._filters.append(filter_)
docs: Add an image filter for post-processing