improving the image registration