Added colour function in scaling function.

Not yet used in ADImage.