save last graph to "dxf" or "png" file