Added RGB color support to patterns