Drawing many stimuli of arbitrary shape

Related but different question here.