added functions to echo graphics to .eps file