nction () {
				const imageHeight = img.height;
				const imageWidth = img.width;
				canvasElement.height = outputSize;
				canvasElement.width = outputSize;
				canvasCtx.save(); // save canvas transform state before doing horizontal flip
				canvasCtx.clearRect(0, 0, outputSize, outputSize); // reset canvas
				canvasCtx.rect(0, 0, outputSize, outputSize); // paint white background so it's not transparent
				canvasCtx.fillStyle = 'white';
				canvasCtx.fill();
				if (mirrored) {
					canvasCtx.translat