fix errors on image download