Write extent and zoom range for preview to user preferences. Also read from preferences.