A method of improving registration accuracy of infrared and visible images