gif maker written in c++ (using libgif)