Remove dual call to resize() on refresh() method

On refresh: method, obj.resize is called two times (lines 3478 and 3480)
Removing, improve as well a little the refresh performance
Merge pull request #769 from natxocc/patch-1

Remove dual call to resize() on refresh() method