Added support for resizing

Clear the style before pushing to the variable!