added save png to main.m