Condense damage list

by merging overlapping dirty rectangles