Writes the picture to stream in format, one of Formats. Call it on the UI thread: a picture is rendered with the UI's own drawing.
stream
format
public Task WriteAsync(MarkdownImageFormat format, Stream stream)