protected function validateImage($file, $fieldName, $imageOptions)
    {
        if ($rules = array_get($imageOptions, 'rules')) {
            $this->validationFactory()->make(
                [$fieldName => $file],
                [$fieldName => $rules]
            )->validate();
        }
    }