changed signature of raster to simplify impl
Merge pull request #40 from gwenzek/master

Added 'toColor' and 'fromColor' methods to raster.