Load Images in texture plugin

How can I set up a texture plugin to load images from disk?

I can write everything necessary, except for the but where the user tells the plugin what image to load.

I’ve tested the plugin with a hard-coded filename and it works, but the interface with blender only allows numbers and toggles, not the “Load Image” button, or even strings…

Can anyone think of a way to do this?
Or even an ok workaround?

i have no idea how, but what does your pluging do?

So far it’s the same as an image texture, but it will eventually use it as a normal map