Add option to disable automatic resizing