ADD - add DeregisterImage function and test case