Added save png functionality