I want to display dynamic images in the dashboard

You can do it with the old Grafana v6 table panel which supports HTML tags. I use it to display captured CCTV still images in real time on a dashboard. Like you, my MySQL database contains an image path which the Grafana instance needs to have read access to to enable it to display.

The newer Grafana v7 (and I think v8 is same) table panel removed the feature that made this possible (sanitize html). But you can still use the old v6 table panel with Grafana v7 (and I think v8). See my post here on the topic: