Added ambient color detection