Reducing code duplication

I’m capturing the code for displaying the user image and then passing
that as the content to link_to_if.