Manually convert LUT data to PNG.

DevIL is corrupting the LUT data.
Correct index.y calculation.