draw template on preview