added functions to stitch objects from different tiles