Cleaned up unnecessary imwrite and draw contour