Hello,
We recommend you read the documentation available on How to remove template placeholders.
Since phpdocx 15, removeTemplateVariableImage can be used to remove image placeholders. Previous versions of phpdocx can use removeWordContent available in DOCXPath for this same task: https://www.phpdocx.com/documentation/snippets/remove-image-contains-placeholder
Regards.