It would be better to hide the div with `display:hidden` when no avatar is to be displayed, and declare the default height and width in `core/css/styles.css` so that themes are able to override it.