public function thumbnail($id, $maxWidth = 100, $maxHeight = 100, $quality = 8, $resize = true)
{
$path = $this->webFilesystem->getPath($id);
$cacheDir = 'cache/rendered-image/' . $path;
//@todo handle cacche
$image = $this->webFilesystem->getThumbnail($path, $maxWidth . 'x' . $maxHeight);
$this->webFilesystem->writeImage($image, $cacheDir, $quality);
return $cacheDir;
}