script/gen_gallery.py: fix figure paths in generate_images()