func (i JPEG) Write(textImage *image.RGBA, w io.Writer) error {
	output := image.NewRGBA(i.Bounds())
	draw.Draw(output, i.Bounds(), i.Image, image.ZP, draw.Src)
	draw.DrawMask(output, i.Bounds(), textImage, image.ZP, textImage, image.ZP, draw.Over)
	return jpeg.Encode(w, output, nil)
}
Write Image to writer
package gomeme
import (
	"image"
	"image/draw"
	"image/jpeg"
	"io"
)
type JPEG struct {
	Image image.Image
}
func (i JPEG) Bounds() image.Rectangle {
	return i.Image.Bounds()
}