Correctly resize big images in preview

I changed
```scss
// Otherwise we get the wrong size in JS
max-width: none;
```
but nothing appears to have broken