Utility method to write the image to file so I do not have to deal with file i/o
every time I write a test.
Parameters: chart - verything that is renderable extends this class. Parameters: fileName - what to name the file throws: ChartDataException - throws: PropertyException -