Basic functions works for export diagram to png graphics