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. 
could you fix the pull request, so I can complete the merge ? thanks