Preserve attributes

The modification allows to preserve the following attributes :
- Resize Type
- maxWidth / width
- maxHeight / height
Merge pull request #48 from orelus/patch-1

Preserve attributes (closes #45)