Added fix for getRandomImage
Added fix for getRandomImage

Instead of only accepting the first arg as an int, it now checks the last argument in the array and if the filename is undefined, returns a random one.
Paranoid-Devs/Tron