this is not very django specific. It should go into html (where i am sure that there are already img snippets.).