make diagram images