Fix #1497 Resizing images is not working on tablet in paysage mode
Merge pull request #706 from nlegoff/fix_1497

[3.8] Fix #1497 Resizing images is not working on tablet in paysage mode