fixed mcat to run on refimg
updated apply shifts to use iterstat