Fix thumbnail rotation regression
Merge pull request #4055 from Snuffleupagus/fix-thumbnail-rotation-regression

Fix thumbnail rotation regression