If the view gets resized to a 1:1 aspect ratio, remember the previous mode to avoid flickering when going back to a larger size or different aspect ratio.