removed trackbar. refactored contours extraction.