my script for graphicsmagick/imagemagick dealing with raster maps