Add from_hex method and fix overriding blue values