how to rename all images as per its color model. if rgb... name as RGB (incrementalvalue) similarly for the other color models . script please

 how to rename all images as per its color model. if rgb... name as RGB (incrementalvalue) similarly for the other color models . script please