Added a resize func

Since resize is possible, I took advantage of it. If there is a& better way to do it let me know :)
Merge pull request #176 from delahee/patch-5

Added a resize func