Make resizer stand-alone.

And sorry for forgetting to mention adding support for scaled-resize in
previous commit.
Fix comment position.