Merge small neighbour panels into new, bigger ones. Allows detection of texts or drawings outside of frames (regular panel borders).