canny function , MainForm change , little code fix