Removed unused imports
Resizing works properly.