stitching with padding works with multiple images in any direction
merged changes