Include image in a space revit

I need help to create a dynamo script for revit. :pray:
I want to include an image in my spaces so one photo per space.
I thought about creating a family (space tag) with the photo that has the space number as its name.

I would like dynamo to do this
Apply tag 001 (with the photo) to space 001
Apply tag 002 (with the photo) to space 002

I started my dynamo but it does not work.
If you have other ideas for the same result I would like to know too
And if you know how to create families with photos I would like to know because I have more than a hundred :sweat_smile:

Hello,
Be sure that you are connecting correct input type to inputs. The node’s Element input requires a Revit element, but I see that you connected a string data. You need to connect your space elements for that input.