The D40 also does image overlay in camera. I have only messed with it a little bit. It works on two pictures but then you can overlay a third with the output of the previous two overlays. All done in camera.