Added option to disable the resize feature.