public void writeToSequence(RenderedImage img) throws IOException {
        gifWriter.writeToSequence(
                new IIOImage(
                        img,
                        null,
                        imageMetaData),
                imageWriteParam);
    }
Creates a new GifSequenceWriter

@param outputStream        the ImageOutputStream to be written to
@param imageType           one of the imageTypes specified in BufferedImage
@param timeBetweenFramesMS the time between frames in miliseconds
@param loopContinuously    wether the gif should loop repeatedly
@throws IIOException if no gif ImageWriters are found
@author Elliot Kroo (elliot[at]kroo[dot]net)
src/main/java/com/kodedu/animation/GifSequenceWriter.java