public function createNewSignatureImage($imageData, $fileId)
{
$protected_file = new \ProtectedFile();
$protected_file = $protected_file->createForWriting('cvi_signature_' . $fileId);
if (file_put_contents($protected_file->getPath(), $imageData)) {
$protected_file->save();
return $protected_file;
}
}