Force checking the color type before accessing pixels

… by making pixels fields of the enum variants.

This should help prevent bugs such as https://github.com/servo/servo/issues/3154
Merge pull request #42 from servo/enum

Force checking the color type before accessing pixels