Refactoring ResizeManager

Refactoring ResizeManager by make it instanciable to allow dependency injection.

Move all resizing transformation in the class.