tempCanvas = {
const tempContext = DOM.context2d(width * quality, height * quality, 1);
tempContext.fillStyle = 'white';
tempContext.fillRect(0, 0, width * quality, height * quality);
const tempCanvasImage = tempContext.getImageData(0, 0, width * quality, height* quality);
let tempCanvasImageData = tempCanvasImage.data;
ff.modifiedPixels.forEach((val) => {
const xy = val.split('|');
const x = parseInt(xy[0], 10)
const y = parseInt(xy[1], 10)
const off = y * (width * quality * 4) + x * 4;
tempCanvasImageData[off] = 255;
tempCanvasImageData[off + 1] = 0;
tempCanvasImageData[off + 2] = 0;
tempCanvasImageData[off + 3] = 255;
});
tempContext.putImageData(tempCanvasImage, 0, 0);
return tempContext.canvas;
}