Accurately segments the foreground from an image and removes the background.