variable : variable to replace with image
imagePath : path of the new image

require_once 'classes/CreateDocx.inc';
$objDocx = new CreateDocx();
$objDocx->addTemplate('TemplateImage.docx');
$objDocx->addTemplateImage('IMAGE', 'logo_phpdocx.gif');
$objDocx->createDocx('template_image.docx');