[Bug 1140398] Catastrophic failure saving large images