Extensible Multithreaded Image Processing Template