Termination for Image function fixed