private function validateUploadImage(UploadedFile $uploadedImage, array $config)
    {
        $errors = array();

        foreach ($this->validator->validateValue($uploadedImage, $this->getConstraint($config)) as $error) {
            $errors[] = $error->getMessage();
        }

        return $errors;
    }