Implements getScaledFrame.