Added support for Raster metadata (issue #3) based on code by @kitzilla.