Pretty big (but not complete) rewrite of the scanning! Instead of each pixel corresponding to a list and the variable being saved to that, I made a list of colors that were used and another list of the items in that list in the gif. This way cut the loading time and the data needed by half. The time it takes to convert the gif goes from weeks to hours. The best part of all of this? There is no difference in image quality from this to the other method.
Yes, I know about the pi symbol, that's the hard part of the resolution... And if you ask why I don't change the resolution, the resolution I have now is the most viable way to render the gif, and if I had a resolution higher than that, the gif could not load in real time and you couldn't really call it a gif.