move effect processing into capture thread

This fixes unresponsiveness of the whole UI when using CPU-intensive effects (like emboss or oil paint) with large resolution.