How to crop the stimuli images during the experiment?

I got this to work! Thanks! I specified the vertices of the rectangle and it works just fine.