Fix reading of raster images from GDAL.