Added .gif encoding :new:

Added basic gif encoding. It is currently slow because of the class
being used. A more optimised version may be found later.