Corrected image scanner - should fix issues on iOS.