Update Preprocess.py

Morphologically transforms canny output to get rid of noise and to have single boundary line