replaced colorWithRGB method with colorWithWhite method