diff --git a/documentation/doxygen/makelibs.sh b/documentation/doxygen/makelibs.sh
index d31bb7401951746fb337e27aa12ea6df2f148c12..a97df5ec6be24b2d48aa12e00b0de85554783c5e 100755
--- a/documentation/doxygen/makelibs.sh
+++ b/documentation/doxygen/makelibs.sh
@@ -30,5 +30,5 @@ dot -Tsvg libraries.dot -o $PICNAME
 
 # Make sure the picture size in the html file the same as the svg
 PICSIZE=`grep "svg width" $PICNAME | sed -e "s/<svg //"`
-sed -i'.back' -e "s/\(^.*__coll__graph.svg\"\)\( width.*\">\)\(.*$\)/\1 $PICSIZE>\3/"  $HTMLPATH/class$1.html
-rm $HTMLPATH/class$1.html.back
\ No newline at end of file
+sed -i'.back' -e "s/\(^.*src\)\(.*__coll__graph.svg\"\)\( width.*\">\)\(.*$\)/<div class=\"center\"><img src\2 $PICSIZE><\/div>/"  $HTMLPATH/class$1.html
+rm $HTMLPATH/class$1.html.back