This time directly writing to png device