Share ColorSpace.getRgb() between all sub-classes.

This code duplication has been bugging me for a while.