fix duplicate uploads of the same image