Moved attachment generation to report renderer