public function getThumbnail($originalImagePath, $type)
    {
        if (array_key_exists($type, $this->getTypes())) {
            return preg_replace('#^(.*)\.(' . implode('|', $this->getAllowedExtensions()) . ')$#', '$1-' . $this->getThumbnailPrefix() . '-' . $type . '.$2', $originalImagePath);
        }

        return false;
    }