Source: http://java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm
This only affects the default decode path where either a GIF or a Bitmap is an acceptable result. The GIF only path will still return GifDrawables for single frame GIFs. Fixes #160.