Changed code retrieval algorithm

Everything is different with how I get the codes and add to the table.
It actually works now. It is specific to GIF Raster Data parsing though.