script to download image from sharepoint