A copy of the Slicer itkMGHImageIO mechanism for ITK.