I change to InvalidImageException, but I can't find create any test case where this will happen since all exceptions will have been handled by the Image class. If this is the case, can we remove this `if .. then` structure?