Unit test for Image class