Improve finding black & white text and lines.
Fixes #24 - a bug with R2014b (thanks to merrickbrian for reporting it).