code for ISS image initial registration