Fix image registration