Added autoWidth option (issue #3)