/**
* @inheritdoc
*/
protected function delete($attribute, $old = false)
{
parent::delete($attribute, $old);
$profiles = array_keys($this->thumbs);
foreach ($profiles as $profile) {
$path = $this->getThumbUploadPath($attribute, $profile, $old);
if (is_file($path)) {
unlink($path);
}
}
}