First version of background cutting