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.