General photo downloader with a JSON interface.