Fix globalCompositeOperation not properly assigned. Fix globalAlpha and clearRect. Fix offscreen canvas.