Thank you sir
The post here Fold patches of images back to single image - #3 by agadetsky works for me