'Modifies image attributes.
:param      image: NodeImage instance
:type       image: :class:`NodeImage`
:param      attributes: A dictionary with node attributes
:type       attributes: ``dict``
:return: True on success, False otherwise.
:rtype: ``bool``'

def ex_modify_image_attribute(self, image, attributes):

    attributes = (attributes or {})
    attributes.update({'ImageId': image.id})
    params = {'Action': 'ModifyImageAttribute'}
    params.update(attributes)
    res = self.connection.request(self.path, params=params.copy()).object
    return self._get_boolean(res)
