WIP Added image processing thread support