As it was with IRC, there are some easily created bots.
You can write this message to @imagebot (or write in a group chat where he is added as a member):
/get Anna Kendrick
(or /getgif Anna Kendrick but it's not properly working at this moment)
This is what it looks like: Example 1 Example 2
Example gif: screenshot gifv