Added colour space detection