func displayImage(buffer image.Image, window ui.Window) { draw.Draw(window.Screen(), window.Screen().Bounds(), buffer, image.ZP, draw.Src) window.FlushImage() }