finalImage = {
const w = imageWidth / 20;
const h = imageHeight / 20;
const context = DOM.context2d(w, h);
context.fillStyle = "black";
context.fillRect(0, 0, w, h);
FileAttachment("remi-walle-Ui3bOgnjtl0-unsplash.jpg").image().then(image => {
context.drawImage(image, 0, 0, w, h);
update(context);
})
return context.canvas;
}