Fixed RGB values not saving properly

- issue #18