I would try the montage function. The only tricky part there is that you have to pass it an array of filenames, or single array of images.
You can specify the "Size", in terms of number of rows and columns, but you cannot include a border. For that you would have to pad each individual image with whitespace before calling the montage function.