add createPNG() example to document