added erosion/dilation for noise removal, added detection of foreground objects (bounding box)
added contour and convex hull segmentation of foreground object