Move a file out of a folder and rename it to the name of the

I’ve been using Hazel for years and pretty much it’s been able to handle anything I’ve thrown at it, but I can’t figure this problem out.
I need to import a load of pictures into a new personnel system. Each image is stored in a separate folder (only one image per folder), named with an Employee Id (which are all unique), so:
100001
----> Image.jpg
100002
----->Image.jpg
Ect….
In order to import the images into the new system I need to have them all in a sperate folder, which I can do easily, but during the copy I need to rename the image with the name of the original folder it came from, and end up with:
Import-Folder:
----->100001.jpg
----->100002.jpg
Ect.
Can this be done ??
I need to import a load of pictures into a new personnel system. Each image is stored in a separate folder (only one image per folder), named with an Employee Id (which are all unique), so:
100001
----> Image.jpg
100002
----->Image.jpg
Ect….
In order to import the images into the new system I need to have them all in a sperate folder, which I can do easily, but during the copy I need to rename the image with the name of the original folder it came from, and end up with:
Import-Folder:
----->100001.jpg
----->100002.jpg
Ect.
Can this be done ??