Added interface for onImage offImage