I know I got this from a tutorial somewhere.
I will find out the original author and give credit if I extend this.
arg1: border width (5 -> 5x5) / margin / padding between sprites
arg2: draw size (sprite size)
arg3: full image size in pixels
python generate.py 5 10 1500