allow empty attachments and images.
Merge pull request #4 from a7p/master

allow empty attachments and images.