Image scaling: fix mistake in 15173919c3b2b24b33b8401c3b09fb68984d593d