I have as script that generates an image based on user input and also generates the html to display that image (using an img tag). The problem is, the script always saves the image with the same filename. So if two users generate an image at approximately the same time, one could end up getting the image generated based on the other's input. While I don't see this happening often (if ever) for my script, I do want to avoid this if at all possible. I just can't think of a good way to do it. Sure, I can use a random file name each time the image and html are generated, but then I'd need some sort of clean-up script to run periodically to delete those images. Are there any other options?