added canny and distance transform