processes image content in XML files. No tests.