added initial version of save2png.m