Threaded implementation for ImagePostProcessor. Bugs fixed, added new API.