Thresholding

Related to #97 
Method for fetching thresholded image added. Image setter fixed(thresholding removed).