public function delete($pathToImage, $isDir = false)
    {
        $this->sizes->keys()->each(function ($size) use ($pathToImage, $isDir) {
            list($path, $name) = $this->getThumbPath($pathToImage, $size);
            $file = $path . '/' . $name;
            if ($this->storage->exists($file)) {
                if (!$isDir) {
                    $this->storage->delete($file);
                } else {
                    $this->storage->deleteDirectory($file);
                }
            }
        });
    }