Exchanged fillRect for clearRect for canvas clearing.