Comic panel detector

Finds panel boundaries by tracing the actual border lines โ€” handles rectangles, diagonals, and irregular shapes, not just grid layouts.