Added calculate_dimensions templatetag.