public function getPath($deferredAllowed = true)
{
$fsPath = $this->getFileSystemPath($deferredAllowed);
$path = str_replace(PIMCORE_DOCUMENT_ROOT, "", $fsPath);
$path = urlencode_ignore_slash($path);
$results = \Pimcore::getEventManager()->trigger("frontend.path.asset.image.thumbnail", $this, ["filesystemPath" => $fsPath, "frontendPath" => $path]);
if ($results->count()) {
$path = $results->last();
}
return $path;
}