When saving animated give to file-like object use MagickWriteImagesFile ...

...instead of MagickWriteImageFile.