Export diagrams to png