The scale factor was incorrect because it always compared with 1, which caused the background image not being resized properly when height > width.
This commit uses the same scale factor in ToolTipInstance.qml, so the scale factor is correct again.