added contour debug drawings