added exception catch for drawContour, still need to figure out why the exception is raised