added integer-RGB to hex-color conversion