func (btn *ImageFileButton) GetImageForButton(btnSize int) image.Image {
	g := gift.New(gift.Resize(btnSize, btnSize, gift.LanczosResampling))
	newimg := image.NewRGBA(image.Rect(0, 0, btnSize, btnSize))
	g.Draw(newimg, btn.img)
	return newimg
}
GetImageForButton is the interface implemention to get the button's image as an image.Image
package buttons
import (
	"github.com/disintegration/gift"
	"image"
	"image/draw"
	"os"
	streamdeck "github.com/magicmonkey/go-streamdeck"
)
type ImageFileButton struct {
	filePath      string
	img           image.Image
	updateHandler func(streamdeck.Button)
	btnIndex      int
	actionHandler streamdeck.ButtonActionHandler
}