Gets all Jpegs and PDFs in a directory and outputs their file attributes to text file