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