Add support to ImageWriter for writing multi-frame animated GIFs