public static function deleteThumbnails($imagePath)
    {
        $imagePath = normalizePath("{$imagePath}/");
        $fileName = basename($imagePath);
        $tmbPath = normalizePath(dirname($imagePath) . '/.tmb/');
        $folder = new Folder($tmbPath);
        $pattern = preg_quote(static::removeExt($fileName));

        foreach ($folder->find(".*{$pattern}.*") as $tn) {
            $tn = new File($tmbPath . $tn);
            $tn->delete();
        }
    }