Fixed problem where text attachments would not be drawn if shadow set.
Fixes #260
Fixed problem with scanHTMLColor:
- was unable to parse HTML color name
- caused shadow color written as color name to not be picked up
- Added unit test