output png file is bad