Fix resize error in FitWindowToImage

Typo of "MDIChild.ScaleWidth" instead of "MDIParent.ScaleWidth" led to
bad results when one dimension exceeded the viewport area (but the other
did not).