Dirty hack to really fix images base

The dirty hack consists in adding the base directory in the context and
propagating the context to every templates.

This makes the code a little more uglier than it was, and requires a big
cleanup as soon as I find time for it.