GifEncoder from https://github.com/madmaw/animatedgifencoder. CAUTION: Test code integrated in GifDrawable