Image and link methods

Depends on #627.
`foo` isn't a good variable name