Computing layouts with deformable templates | Synapse