Fix bug with adding text on an image in landscape mode.

 The bug appeared because of IOS behaviour that gives us the width and the height of the  screen always as we are in portrait mode. 
Only the first commit should be merged. The second one was needed for our local development, I'm not sure why it was also added in the pull request.