Bug Fixes

* Added labels file in output folder
* Replaced incorrect ThresholdImage
* small other fixes