https://bocoup.com/blog/d3js-and-canvas
https://www.codegrepper.com/code-examples/javascript/canvas+load+image
function loadImage(url) {
return new Promise(r => { let i = new Image(); i.onload = (() => r(i)); i.src = url; });
}
let img = await loadImage("./my/image/path.jpg");
ctx.drawImage(img, 0, 0);