Fix thumbnail reading for unflattened resolutions