fix for downloading images