Refactor BackgroundCaptureTask to compute highlight on UI thread