Fixed image size preference and preview size bugs.