How to create collage?


I would love to be able to create a collage of photos with this program. There is no built-in functionality in the program yet, but is it possible to do it with Javascript? I can’t figure out how to do it.
Please give me an advise.

Image Grid function is very good, but It needs hard dimensions “5X6” , and I need the images to be more evenly spaced.
If I load 21-22 images, I have 1-2 images “hanging in the void”.
It would be very nice if the arrangement of objects could be more chaotic.
For example in the program Turbo Collage - very well made picture grid unequal.
I can’t automate the process there, and I really need it.

It would be possible to do with JavaScript, but it might be a bit advanced for most folks?

The JS plugin API is described here: Retrobatch JavaScript API