repush of resize branch

Here is what you were asking for @satrent