Fixed issue when sometimes getting NSURLDomainError -999 when downloading image