Image Occlusion already has those features. You can access the two fields by clicking the blue button in the top bar: