Your XAML looks fine, and it is valid to use TemplateBinding like this, so the problem must be in your DependencyProperty.
Height and Width are Doubles. The Binding engine doesn't deal in implicit casts.
Change your DP to that type and it should work fine.