Page sourcePage = project.getPageById("4711");
Page targetPage = project.getPageById("4712");
// copy all content elements (source and target should have same content class)
// include headline and ignore referenced elements
targetPage.copyContentElementValuesFrom(sourcePage, true, false);
// copy image filename of sourcePage image element templateElementName to image element with same name of targetPage
targetPage.copyImageValueFrom("templateElementName", sourcePage);
// copy image filename of sourcePage image element named templateElementName to image element with same name of targetPage
sourcePage.copyImageValueTo("templateElementName", targetPage);