So have duplicate images of around an extra 100MB? It just seems more logical to grab a random image name from the database. You won't have a duplicate image, and you don't have to do anything with the code after you add more images.
I didn't think it would be so hard to do. I figured someone with little php skills could create something that works.
