Why not use a custom photo stitching app like hugin? http://hugin.sourceforge.net
It doesn’t just work for panoramic photos.
Mark