using clearRect instead of assigning to canvas.width to clear between frames