node duplication to include related images and nested nodes