code: def get_thumbsdir(self, path):
          
          # Thumbsdir could be a callable
          # In that case, the path is built on the fly, based on the source path
          thumbsdir = self.thumbsdir
          if callable(self.thumbsdir):
              thumbsdir = self.thumbsdir(path)
          return thumbsdir
docs: path:
              path of the source image