Added ColorModel and intersection code