Also moved the RGB panel initialization code to a common component, which can be reused by other examples.