Tweak the behaviour of `$.fn.resizeImages`.

- Expose the resize host to allow it to be changed for testing.
- Return only images that were modified.