Fix a bug of repeated downloading images