Fix images getting downloaded multiple times