Refactor resize to it's own module