Use a components + flags for color spaces instead of an enum.

The mapping between oil_fmt and other color spaces was too cumbersome.

Use a combination of the number of components and option flags
instead.