Suppose, I have a dataframe which contains some words with their frequencies. I want to create a wordcloud in R with the words inside the shape of a logo, for example, the twitter logo just like this:

For the wordcloud, there is a package named wordcloud2 and running the demo only gives a square image of the words. How would I add a specific image of my choice to be the shape of the wordcloud?
wordcloud2(demoFreq) only ouputs a square.
