1. A method, comprising: at an electronic device, receiving information corresponding to an image-capturing device that is capturing an image; automatically selecting one of a plurality of image analysis mechanisms based upon the information; receiving the captured image captured by the image-capturing device; performing an image analysis using the selected image analysis mechanism on the captured image to determine a foreground and a background in the captured image; selecting a further one of the image analysis mechanisms; determining secondary information generated by using the further image analysis mechanism; and incorporating the secondary information into determining the foreground and the background in the captured image.