improve code of AuthImageDownloader