Added padding in clearRect

Seems that there is a lag in Safari. Pixel are drawn out of rect.