changing graphs to save as png