png & plot code