Implicit shape model implementation