fix opacity binary writing.
Fix publishing crash. Issue#152
Merge pull request #155 from jtwigg/develop

Develop