Modified the ImageWriter interface to only emit to a stream without explicitly using the IImage interface as a parameter (this is required for rebuilding the ImageWriter from scratch)