changed back to tiff and xstream output