making image and file download links work