function delete($media, $imageType = '')
 {
     $sizes = $this->getSizesByType($imageType);
     parent::deleteMediaAndFiles($media, $sizes);
 }
 function delete($media, $imageType = self::GALLERY_TYPE_IMAGE)
 {
     $sizes = $this->getSizesByType($imageType);
     parent::deleteMediaAndFiles($media, $sizes);
 }