function combine() {
let canvas = document.createElement("canvas");
canvas.id = "mycanvas";
let myImg1 = document.getElementById("myImg1b");
let myImg2 = document.getElementById("myImg2");
let myImg3 = document.getElementById("myImg3");
let myCanvas = canvas;
var w = myImg1.width;
var h = myImg1.height;
myCanvas.width = w;
myCanvas.height = h;
var ctx = myCanvas.getContext("2d");
ctx.clearRect(0, 0, w, h);
ctx.globalCompositeOperation = blend[layerBlend[2]];
ctx.globalAlpha = layerOpacity[2] / 100;
ctx.drawImage(myImg3, 0, 0, w, h);
ctx.globalCompositeOperation = blend[layerBlend[1]];
ctx.globalAlpha = layerOpacity[1] / 100;
ctx.drawImage(myImg2, 0, 0, w, h);
ctx.globalCompositeOperation = blend[layerBlend[0]];
ctx.globalAlpha = layerOpacity[0] / 100;
ctx.drawImage(myImg1, 0, 0, w, h);
return myCanvas;
}