Automatic color extraction