Images: Add a word boundery for the stripping

The search query to the images endpoint sometimes changes because "photograph image" turns to "graph image" and "photograph cat" turns to "graph cat". Fixes #723.

CC @nilnilnil @yegg