initial implementation of secure image downloader