genStaticMap function

generates a "static map" from map tiles by "stitching" them together