changed the way the XML is written (Utf8StringWriter).
fixed some namespace problems.
fixed image element's name