Better reuse of code in the angrymemes example