This quick entry covers the compositor node setup for adding a background image to a scene using the compositor. The node setup is seen below. It uses the AlphaOver node. The only caveat i noticed is that the overlaid object (my cube) must be on the lower image input, and the Premul value set to 1.0.
The final render shows the standard cube in front of the image i imported (chairs).