'List all images with an optional filter.
:param  image_type: The image type (HDD, CDROM)
:type   image_type: ``str``
:param  is_public: Image is public
:type   is_public: ``bool``
:return: ``list`` of :class:`NodeImage`
:rtype: ``list``'

def list_images(self, image_type=None, is_public=True):

    response = self.connection.request(action='images', params={'depth': 1}, method='GET')
    return self._to_images(response.object, image_type, is_public)
