Fix a bug of insert data if cannot download image