Correcting image locations