Added constructor to take a single int representing RGB encoding, and splits the integer into it's red, green, and blue parts