Fix multithreading in Histogram widget
Before this commit, Histogram widget would use a homebrew threads to handle its multithreading. This commit ensures that a proper stroke system will be used for that.