'Create an image for node.
@inherits: :class:`NodeDriver.create_image`
:param      node: node to use as a base for image
:type       node: :class:`Node`
:param      name: name for new image
:type       name: ``str``
:rtype: :class:`NodeImage`'

def create_image(self, node, name, description=None, reboot=True):

    image_elm = ET.Element('image', {'xmlns': self.XML_NAMESPACE, 'name': name, 'serverId': node.id})
    return self._to_image(self.connection.request('/images', method='POST', data=ET.tostring(image_elm)).object)
