write_colorspace_attr
write_colorspace_attr(gKey_format, d.format, context);
write_colorspace_attr(gKey_space, f.space, context);