Small tidy up on rgb() code