Add option to disable or change the resize property.