drawing dynamically a stencil