@Override
      public @Nullable CloseableImage decode(
          EncodedImage encodedImage,
          int length,
          QualityInfo qualityInfo,
          ImageDecodeOptions options) {
        return getAnimatedImageFactory()
            .decodeGif(encodedImage, options, options.animatedBitmapConfig);
      }
{@link AnimatedFactory} for animations v2 that creates {@link AnimatedDrawable2} drawables.
animated-base/src/main/java/com/facebook/fresco/animation/factory/AnimatedFactoryV2Impl.java