Looks like it was a memory issue on iPhone, not a rotation issue. It's sort of fixed by pre resizing images, but in the process also removes the need for the selection logic of guessing the proper orientation.