Using entropy for drawing reliable templates