Finally got graphs to save to a png file