Moved threading to AbstractImageFilter