int main(int, char *[])
{
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
RandomSourceType::Pointer randomImageSource = RandomSourceType::New();
randomImageSource->SetNumberOfThreads(1);
ImageType::Pointer image = randomImageSource->GetOutput();
DuplicatorType::Pointer duplicator = DuplicatorType::New();
duplicator->SetInputImage(image);
duplicator->Update();
ImageType::Pointer clonedImage = duplicator->GetOutput();
return EXIT_SUCCESS;
}