'Return a list of all images filtered by any parameter.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#list-images
https://developer.openstack.org/api-ref/compute/#list-images-with-details'

def list_images(self, detail=False, **params):

    url = 'images'
    _schema = schema.list_images
    if detail:
        url += '/detail'
        _schema = schema.list_images_details
    if params:
        url += ('?%s' % urllib.urlencode(params))
    (resp, body) = self.get(url)
    body = json.loads(body)
    self.validate_response(_schema, resp, body)
    return rest_client.ResponseBody(resp, body)
