refactor code
update image downloader