improve setutputCanny method, remove a bunch of useless things.