function for image registration testing