Perform blending in worker threads and only do it when we have new data.  Removed some unused code and fixed a couple warnings.