Image sampler and Human UI

I have a script that contains an image sampler component and now I want to make it a bit more user friendly by incorporating human ui.

But as there no way (as I now as a beginner) to set the image path dynamically is it even possible to use human ui to set the image of my image sampler component?

Fixed myself by creating a small python script that does the same as the image Sampler but where I can pass a filepath as a parameter.