Vastly improved the performance of restarting the pixel sorter when changing parameters by improving the thread pool to be clearable without killing the threads and managing the image data lifetime better.
Also added an overlay to see the selected pixels (could improve the blending for this if you have any suggestions).