Added rgb support functions.