More refactoring of the resize plugin code