protected function createThumbnailOfImage($field, $input)
{
if (!array_get($input, 'has_thumbnail', false) || !$field->values->image(false)) {
return '';
}
return array_get($input, '_crop_thumbnail', false) ? $this->croppedImagePath($field, 'thumbnail') : $this->resizedImagePath($field, 200, 200);
}