Boundary extraction from buffered image