Update dilation to new template design (incomplete)