figure borders extracted