fix clearRect after previous addition of padding