Added code for multithreaded screenshot checkbox