refactored .wmf image conversion to properly use xpath