Diagram as jpg