def get_image(client, name_or_id):
    """Load an image by name or ID."""
    if name_or_id.isdigit():
        return client.get_image(name_or_id)
    images = client.get_images({'name': name_or_id})
    if not images:
        return
    return client.reload(images[0])
