def find_image_by_name(images, img_name):
    """Search the list of registered images for one whose image name is
    'img_name'.  Return the image if found, otherwise None.
    """
    for img in images:
        if img['imagename'] == img_name:
            return img
    return None