We found clearIfOverlapped could be a heavy task in some actual applications. Instead of clearing existing data in the pixels records, add a new record with a nil slice which indicates a cleared region.