These settings appear to work quite well - the image is either
rotated by 90 degrees or rotated correctly.