Added the functionality of writing all the paramters used to 2 separate files

When the `write new file` button is clicked, then two new files are created.

The file `threshold.th` contains the threshold data. In 6 lines, the first three lines containing the lower thresh and the last three lines containing the upper thresh data.

The other file `params.txt` contains data regarding the complete staging process, including the parameters used in all the filters (Blurs, Dilate and Erode Parameters and Blob Detection and filling parameters)