Add custom modifications.

Add "ratio" option.
Auto-resize when window size changes.