image = {
let context;
const aspect_ratio = uploaded.width / uploaded.height;
const width = Math.min(uploaded.width, 400);
const height = width / aspect_ratio;
context = DOM.context2d(width, height)
context.drawImage(uploaded, 0, 0, width, height)
context.canvas.style = "width: 50%"
return context.canvas;
}