fixup bmpWrite
Merge branch 'blub/bmpfix'