Fixed rect method to use rgb instead of rbg.