Fixes support with AnimatedGIFImageSerialization

See also https://github.com/mattt/AnimatedGIFImageSerialization/issues/5