'Add a member to an image.
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/image/v1/#add-member-to-image'

def create_image_member(self, image_id, member_id, **kwargs):

    url = ('images/%s/members/%s' % (image_id, member_id))
    body = json.dumps({'member': kwargs})
    (resp, __) = self.put(url, body)
    self.expected_success(204, resp.status)
    return rest_client.ResponseBody(resp)
