Optionally generate svg or png using dot

Also allow for the dot files to be removed afterwards