Added determining of colour object type