fix LUT bug, and sse4 optimization for color convertion