added clearRect method