Changed the file extension of IMG outputs in the map file.
Added metadata for the IMG format in raster layers.
Rainbow colour ramp used by default for raster layers in the map file.
Code cleaning.