Added register paramater to create colour map table.