add xml conversion functionality
make tests passing for refactor-image-service branch