Support for different formats
Refactoring
Refactoring + saving resize properties