More work on Image class and tests. Add code coverage with gcov and friends.