writemime: convert Cmap images to direct (fix #113)