grabcut sample remove unwanted array creation