Refactored code to only use QPixmap on the main thread as it is unsafe elsewhere, added signals and slots to the worker class.