improve validation of oc\preview and implement preview of error icon if something went wrong
fix typo
use $root instead of $path
implement use of previews in sharing app