This feels fragile. It's probably worth making custom exceptions for `get_image_by_name` for `NoImageFound` and `MultipleImagesFound`. Then you can just catch the multiple case