fixed errors when downloading nil images