Render crops image from compositor
When compositing a render over an image you have to make sure that your render dimensions for the scene are set to the same size as the background image.




Your other option (say if the picture quite large) is to scale the picture to match the render size.  

That can be done by adding a Scale node set to Render Size, which will give you a node setup like this.