I am writing and using a very simple CGI-based (Perl) content management tool for two pro-bono websites. It provides the website administrator with HTML
When uploading an image, its filename is not kept in the database. It is renamed as Image.jpg (to simply things out when using it).
Change this, and you've fixed your problem. I use timestamps, as with the solutions proposed above: Image-
Presumably, whatever problems you're avoiding by keeping the same filename for the image can be overcome, but you don't say what they are.