the major change is to replace all the
::itk::GetImageDimension<TOutputNDImage>::ImageDimension>
by
TOutputNDImage::ImageDimension