'Lists all images
:rtype: ``list`` of :class:`NodeImage`'

def list_images(self, location=None):

    data = self._perform_get(self._get_image_path(), Images)
    custom_image_data = self._perform_get(self._get_vmimage_path(), VMImages)
    images = [self._to_image(i) for i in data]
    images.extend((self._vm_to_image(j) for j in custom_image_data))
    if (location is not None):
        images = [image for image in images if (location in image.extra['location'])]
    return images
