use \OC::$server->getPreviewManager() instead of \OCP\Preview