fix bug in raster image width calculation in SetRasterStream