update png generator

It's now possible to save file directly. Also possible to set background
color or leave it transparent.