Hello,
It depends on the method. If you're using replaceTemplateVariableByHTML you must check getImageDimensions method in HTML2WordML file. And replaceImage in CreateTemplate.inc for addTemplateImage.
We're checking how to refactore that code to get a single method.
Regards.