Implemented the custom toRB function for ImageData.
Changed all the IS_KIND/IS_NUM/IS_XXX to IS_RB_KIND/IS_RB_NUM/IS_RB_XXX