Add autoResize conf option. Fixes Issue #403 .