fixed XML parsing and image paths