Fixed ImageDownloader bug when writing to external directory.