Now uses the worker thread to take a screenshot.
Added comments