added utility functions for test generated images.

Added several functions to test.
Also fixed split low pass high pass