Spatial filters now wait for original image, filter it and then shrink it if necesary.
Operations no longer need to wait for original image.
Code formating.