Fix resize flag in saving scaled pictures