take anti-aliasing into account in clearRect
new build