Adding support for GDAL raster images.
Fixed the compiler warnings for the demo program.
Fixing double to uchar conversion warning.
Merge with master and fix conflicts
Merge pull request #3097 from mshabunin:gdal-support