Add raster support

* Added code for raster support (issue #3). The raster support is untested, however.