Solving electrical problems with thermal imaging