diff --git a/pom.xml b/pom.xml
index c0a8aca..f9bfce9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -179,7 +179,7 @@
net.sourceforge.plantuml
plantuml
- 1.2018.1
+ 1.2018.2
javax.servlet
diff --git a/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java b/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java
index e9337b7..cafe2b4 100644
--- a/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java
+++ b/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java
@@ -85,7 +85,8 @@ class DiagramResponse {
if (StringUtils.isDiagramCacheable(uml)) {
addHeaderForCache(blockUml);
}
- reader.outputImage(response.getOutputStream(), new FileFormatOption(format, false));
+ final Diagram diagram = blockUml.getDiagram();
+ final ImageData result = diagram.exportDiagram(response.getOutputStream(), idx, new FileFormatOption(format));
}
private boolean notModified(BlockUml blockUml) {