ljpeg: use the correct number of components in yuv