added resize example. ref #26