Added a new sample for auto resize.