toRGB method implemented
toRGB method change