Showing variable picture in ajax plugin

I have an influx db with short filenames of an icon in one field value (w/o extension, e.g. “icon01”).
The icons itself are accessable via local webserver (e.g. http://localhost/icon01.png).

Now I want to show the icon in a panel at my dashboard.

I’ve tried to put an ajax panel with the influxdb and query with the picture field.

First problem: the query doesn’t work (no data in preview and the query inspector is running in time out after changing the visualisation from graph to ajax).
Second problem: I don’t no how to add the variable value of the icon to the ajax code.

Any suggestions?

Many thanks

solved. I’ve written a python script generating static images. So I don’t need variables in ajax plugin.