Fixed error in image scaling when assigning a landscape image to a tab.