You should be able to set the file name to the existing name from the database. Do you require an image on insert?
What if they change image types (.gif and then .jpg)? Are you just worried about image clutter? It might be easier to delete the old image when updated.