minor edit to randomimage.py which should allow me to set and use parameters easily