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

def create_image(self, node, name):

    attr = {'type': 'snapshot', 'name': name}
    res = self.connection.request(('/v2/droplets/%s/actions' % node.id), data=json.dumps(attr), method='POST')
    return (res.status == httplib.CREATED)
