moved stylesheets and image to external files, and allowed for window png window to adapt to size of graph