fix screenshot and preview distortions