Add code for viewing filters as images.

This is adapted from ShowCovNet's code.