I noticed that your image file needs to have its slashes escaped and you need the full path also
(atleast the last I knew in plain Lua not sure with any libraries but better safe than sorry)
dice:SetImage("Img/icon.png")
should be
dice:SetImage("Interface//Addons//MyAddon//icon.png")
|