fdo#72030 scale images correctly

Change-Id: I277d0e8b58588a6b1281d7a8fd5e26486806e872