image stitching done by a separate class in a different thread