Fix bug with uploading a non-gif image that already exists