Converted diagrams to jpeg