Rejig resizing iteration to work even if an error is thrown
More robust resizing
Add gitignore