Fix extracting when record_diagram isn't in the current directory
Support EPS output in addition to PNG