ImgReg and utilities