Fixed error with renaming toRGB to getRGB