let canvas = document.getElementById('screenshot-canvas'); let image = canvas.toDataURL('image/jpeg');