Fix image URLs in @@contents view

According to [documentation](http://docs.pylonsproject.org/docs/pyramid/en/latest/api/request.html#pyramid.request.Request.resource_url), `request.resource_url()` accepts subpath as positional arguments.