multithreaded image decoder