CRM-13328 : template cleanup

----------------------------------------
* CRM-13328: Add support for image scaling
  http://issues.civicrm.org/jira/browse/CRM-13328