Factorizing resize