'Take XML object containing an image description and convert to
NodeImage object.
:type  image: :class:`ElementTree`
:param image: XML representation of an image.
:rtype:  :class:`NodeImage`
:return: The newly extracted :class:`NodeImage`.'

def _to_image(self, image):

    return NodeImage(id=image.findtext('ID'), name=image.findtext('NAME'), driver=self.connection.driver, extra={'description': image.findtext('DESCRIPTION'), 'type': image.findtext('TYPE'), 'size': image.findtext('SIZE'), 'fstype': image.findtext('FSTYPE', None)})
