Spm dicom

A cleaned up version of PR 666... which was doomed to failure by its number, I suppose.