canny edge detector test added, bug fixes