Automatically identifies the outline of the animal in the input image, separates it from the background and returns a foreground image of the animal with the background removed.