For the +\- problem, do some simple corner detection (2*2 squares where three pixels are black may be too simple, but you may not have to go much further)
It also may help to render the formula in different fonts, and require all renderings to pass your heuristics.
It also may help to render the formula in different fonts, and require all renderings to pass your heuristics.