Background:
I am making a game that requires lots (thousands) of different images to be created so each of them can be drawn to a canvas. I can let the c