tidy up switch usage when rendering the content type icons