fix flickering when flipping using the corner scaling controls

This fixes the flickering that occured in a previous pull request of mine.