Issues with hidden attribute in image contours