func LoadPNG(filename string) (*binimg.Image, error) {
	var (
		f   *os.File
		img image.Image
		bm  *binimg.Image
		err error
	)
	f, err = os.Open(filename)
	if err != nil {
		return bm, err
	}
	defer f.Close()
	img, err = png.Decode(f)
	if err != nil {
		return bm, err
	}
	bm = binimg.NewFromImage(img)
	return bm, nil
}
LoadPNG is an helper function that uses binimg.NewFromImage internally.
package internal
import (
	"image"
	"image/png"
	"os"
	"github.com/arl/imgtools/binimg"
)