Update preview size as well when changing the quality.

Also improve what resolutions are allowed.