phpdocx 12 (https://www.phpdocx.com/news/post/phpdocx-v12-release-notes/223) added the following new option:
- New descr option in addImage to set a custom descr value instead of the image path.
to set a custom value to the descr option. As this option is available in phpdocx 12 but not in previous versions, you can test it using the trial package.
If this option is not set, the path is added. Previous versions of phpdocx add always the path to this attribute.