better companions template (width and height as separate properties)