There are surely ways to use Keyboard Maestro's Image actions to do this but, as suggested in this post, I personally created a macro that uses ImageMagick's Montage function. Well, I admit, it's not the easiest thing to implement but ImageMagick offers a lot of possibilities when it comes to manipulating images.
Here is an example:
Collage
Do not hesitate if you have any questions...