Main window: Ensure boxes are loaded by the same thread that loads the image (otherwise libpoppler segfaults ...)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>