extract external contour or silhouette of image in python,"contour(im, levels=[245], colors='black', origin='image')"