Models for the generation of writing units in handwriting under variation of size, slant, and orientation