Fix screenshots and preview distortion