def get_image_by_name(manager, name):
    """Returns the image object with the given name, or None if not found"""
    my_images = manager.get_my_images()
    for image in my_images:
        if image.name == name:
            return image

    return None