Allow $resizer to be injected, at least for testing purposes.