added sample for surface resize