Refactored gif.py, and worked on loading GIFs from file.