added code to convert the raw images produced by RGBDemo