added support for resizing, previous commit missed adding the files