Trying some new algorithms for resizing