// new image in presentation
PresentationDocument pDoc = PresentationDocument.newPresentationDocument();
Slide slide = pDoc.newSlide(0, "test", SlideLayout.TITLE_OUTLINE);
Textbox box = slide.getTextboxByUsage(PresentationDocument.PresentationClass.TITLE).get(0);
box.setImage(ResourceUtilities.getURI("image_list_item.png"));
pDoc.save(ResourceUtilities.newTestOutputFile("imagep.odp"));
// new image in a table
TextDocument sDoc = TextDocument.newTextDocument();
Table table1 = sDoc.addTable(2, 2);
Cell cell1 = table1.getCellByPosition(0, 0);