Use ImagesToBlob instead of ImageToBlob.

ImageToBlob will implicitly flatten stacks of images instead of writing out
every image in the stack. This is most noticable when writing out animated
GIFs.
Merge pull request #23 from weykent/images-to-blob

Use ImagesToBlob instead of ImageToBlob