Getting rid of some of the choppiness of resizing