fix a bug that everytime upload a new image, save a new file on disk