include images in mail sent as pdf (closes #3730)

also remove some notices and cleanup code
Merge pull request #726 from CircleCode/3.2-I3730

include images in mail sent as pdf (closes #3730)