Use validator's isHexColor to validate colors. Ensure image URIs are strings before decoding.

* Requires an update to validator
Use a constant for the DEFAULT_BACKGROUND_COLOR instead of a magic number.
Add the missing semi;
Update the doc strings for functions that take rpInfo
Replace `this.rpInfo` with `User.rpInfo` which allows a simplifcation in the tests.