Add a function to convert index data into BGBA, and write a test program that dumps ppm images of the gif frames