some changes to raster2.m