first take at new mergeImages, using sub2ind method.
merge error... pls work?
 a few more changes to mergeImages, a first shot at using griddata
 a few more changes to mergeImages, a first shot at using griddata