Add width and height HTML attributes to static image in templates.