How to implement the area erasure function instead of erasing the entire stroke? Please guide me on the general approach to implement this.