'List available images
:keyword location: Location (region) used as filter
:type    location: :class:`NodeLocation`
:keyword ex_size: Exclude images which are uncompatible with given size
:type    ex_size: :class:`NodeImage`
:return: List of images
:rtype  : ``list`` of :class:`NodeImage`'

def list_images(self, location=None, ex_size=None):

    action = self._get_project_action('image')
    params = {}
    if location:
        params['region'] = location.id
    if ex_size:
        params['flavorId'] = ex_size.id
    response = self.connection.request(action, params=params)
    return self._to_images(response.object)
