Fixed image support by rewriting image urls relative to temporary html files.