Add canvas clearRect to clear the canvas between image changing