Invoices/emails: refactored code - pulled pdf generating code out of 'send_email' action into helper method.