Correct bug shifting non-square images.