Improve the matching in console terminals.

We can't use gray scale images in console mode. Use 8U images
instead. Improve de matching in console screenshots, without
getting worse in graphical screenshots.