now using contours to detect shapes