Allow register to take a dicom file, rather than a directory.