added ability to download images