Image and link methods

Depends on #627.
What is `a`? A more descriptive parameter name might be better.