Conversion of RGBA images to 8-bit indexed-color (2.x, C-only)
