fix bug which wasnt allowing the same image upload

previously, if you tried to upload the same image after removing that
image, it wouldnt allow it.