Script to register two images