'Returns whether the queue contains an image or not.
:param image_id: The opaque image identifier
:returns: a boolean value to inform including or not'

def has_image(self, image_id):

    try:
        image = self.registry.get_image(image_id)
        return (image['status'] == 'pending_delete')
    except exception.NotFound:
        return False
