Make sure all GDCM factories are unregistered before registering the
dicom ImagX factory