code: def _parse_tree(self, node):
          
          if 'type' in node.attrib:
              self.kind = node.attrib['type']
          if 'width' in node.attrib:
              self.width = int(node.attrib['width'])
          if 'height' in node.attrib:
              self.height = int(node.attrib['height'])
          self.url = node.text
docs: Parse a <image> object