Merges images. You can optionally set the merging orientation (vertical or horizontal), margins between images, etc.