match pictures and files in regex

added table header and changed output order. Edited regex to match both
img and files, modified  filelink function so it outputs whole url if
file not found