Add utility in C to write random ppm files, this should speed up current bash script.
Use writeppm application instead of scripting to generate random ppms.