if (Unit.PIXEL != img.getPixelSpacingUnit()) {
attrs.setString(Tag.PixelSpacingCalibrationDescription, VR.LO, "Used fiducial");
double unitRatio = img.getPixelSize()
attrs.setDouble(Tag.PixelSpacing, VR.DS, unitRatio, unitRatio);
}
<BUG>writeModelInPrivateTags(img, attrs);</BUG>
try {
Dicomizer.jpeg(attrs, imgFile, new File(exportDirDicom, uid), false);
} catch (IOException e) {
<BUG>LOGGER.error("Cannot dicomize {}", img.getName(), e);
}</BUG>
}

if (Unit.PIXEL != img.getPixelSpacingUnit()) {
attrs.setString(Tag.PixelSpacingCalibrationDescription, VR.LO, "Used fiducial");
double unitRatio = img.getPixelSize()
attrs.setDouble(Tag.PixelSpacing, VR.DS, unitRatio, unitRatio);
