Can't target the subfolder content?

Guys, I need to perform a lot of the same actions with the files:
1) I have a TARGET FOLDER where is a ton of subfolders, each subfolder can have an unpredictable name, like man-with-apple-smiling and inside is an image file usually named like a 12347SomeLetters.jpg I need to take the folder name and add it to the image name to get construction like man-with-apple-smiling-12347SomeLetters.jpg
This only one issue for me to buying Hazel. I've downloaded a trial, trying to make this rule - but have no luck.
I'm thought that hazel can do this, but it looks like I can't address the image in the subfolder name.
Here is a Screenshot of my rule and file structure:
https://prnt.sc/t4qg2b
Could you please help me?
1) I have a TARGET FOLDER where is a ton of subfolders, each subfolder can have an unpredictable name, like man-with-apple-smiling and inside is an image file usually named like a 12347SomeLetters.jpg I need to take the folder name and add it to the image name to get construction like man-with-apple-smiling-12347SomeLetters.jpg
This only one issue for me to buying Hazel. I've downloaded a trial, trying to make this rule - but have no luck.
I'm thought that hazel can do this, but it looks like I can't address the image in the subfolder name.
Here is a Screenshot of my rule and file structure:
https://prnt.sc/t4qg2b
Could you please help me?