Extend writemime to work with ColorValues besides RGB (fixes #130)