Update ImageDocument to use new multithreading abstraction.