Animated Gif decoder from org.opensourcephysics.media.gif