Add the REST api to ImageDownloader (issue #17).