Yes, if you wanted to do it that way, then it'd look like this.
Lua Code:
myOptions = {
type = "group",
args = {
myButton = {
name = "My Button",
type = "execute",
desc = "Click me to do stuff!",
func = function()
--do something here
end,
image = function()
return "Interface\\Transmogrify\\Transmogrify", 20, 20
end,
imageCoords = {0.4, 0.6, 0.4, 0.6},
},
},
}
But if your image is static, then don't create an extra function.