Fix 'Resize large images' option (#681)