Added API to download image and pdf files