can generate gif
use local color table instead of global
can encode transparent gifs. can define dynamic transparency threshold.