I tried this approach but still I'm not able to get the embedded image.
This is an example that on my side is not working:
local ui = require 'ui'
win = ui.Window('Embedded Image', 'fixed', 200, 100)
--local pic = ui.Picture(win, "zynq_102_small.png", 20, 20) - OK
f = embed:File("zynq_104_small.png")
ui.info(type(f))
local pic = ui.Picture(win, f.name, 20, 20) -- KO
win:show()
while win.visible do ui.update() end
I built the exe adding a 'data' subfolder contaiing the png image file.