cleanup render
implement gpu resize