Underscore in Iamge File Name was being converted to Underline command
Double Underscore was being remove from group headings This was corrected to change double underscore to a space.
Empty fields were causing the code to crash and print only a small portion of the report