saving png snapshot