Capture the edge of an image