Changing resize to do_resize to avoid constructor issues (Closes #1)