New version of image stitching script for cards

Changes made to @ahb108 original script for stitching card index images back together.