Output image has the black border cropped, moved core functionality of stitching to a
seperate function (which the stitchImagesClicked will theoretically call in a loop of all images)