IFigure figure = rootEditPart.getLayer( LayerConstants.PRINTABLE_LAYERS );
Rectangle rectangle = figure.getBounds();
Image image = new Image( diagramPresentation.display(), rectangle.width, rectangle.height );
FileOutputStream output = null;
GC gc = null;
SWTGraphics graphics = null;
try