Update im_reg

Bug fix for cluster text file generation