generate png file