added code to print trellis to png file