diff --git a/html/header_reference.html b/html/header_reference.html
index 7b5ef2bcb5d93d0caf036c238dfd0a4da89df858..1f1b85314e51fbb69759e69f8525807de9cad9b8 100644
--- a/html/header_reference.html
+++ b/html/header_reference.html
@@ -1,75 +1,75 @@
-<xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
-    <title>The CImg Library - C++ Template Image Processing Toolkit</title>
-    <meta content="David Tschumperle" name="author"></meta>
-    <link rel="shortcut icon" type="image/x-icon" href="http://cimg.eu/favicon.ico"></link>
-    <link rel="icon" type="image/png" href="favicon.png"></link>
-    <link href="doxygen.css" rel="stylesheet" type="text/css">
-    <link href="tabs.css" rel="stylesheet" type="text/css">
-    <style type="text/css">
-      <!--
-          body {background-color:#000000; font-family:sans-serif; }
-          a { font-weight:bold; color:#636363; }
-          a:active{text-decoration:none; color:#000000}
-          a:link{text-decoration:none; color:#000000}
-          a:visited{text-decoration:none; color:#000000}
-          a:hover{text-decoration:underline; color:#4E9F71}
-        -->
-    </style>
-    <script language="JavaScript" type="text/javascript">
-      <!-- Original:  Eric King (eric_andrew_king@hotmail.com) is used to display images in popup windows -->
-      <!-- Web Site:  http://redrival.com/eak/ -->
-      <!-- This script and many more are available free online at -->
-      <!-- The JavaScript Source!! http://javascript.internet.com -->
-      <!-- Begin
-           function NewWindow(mypage, myname, w, h, scroll) {
-           var winl = (screen.width - w) / 2;
-           var wint = (screen.height - h) / 2;
-           winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
-           win = window.open(mypage, myname, winprops)
-           if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
-           }
-           //  End -->
-    </script>
-
-    <script type="text/javascript" src="../jquery-1.11.0.min.js"></script>
-
-  </head>
-  <body>
-    <table align="center" cellpadding="0" cellspacing="0" width="1000" style="border-style:solid; border-width:0px; border-color:black" bgcolor="#DDDDDD">
-      <tr bgcolor="#FFFFFF"><td>
-          <center>
-            <br/><br/>
-            <a href="http://cimg.eu"><img src="http://cimg.eu/img/CImgLogo2.jpg" alt="" border="0" /></a><br/>
-          </center>
-          <center><font size="-1" color="#777777">
-                Latest stable version: <b><a href="https://cimg.eu/download.shtml">2.3.6</a></b>
-          </font></center>
-      </td></tr>
-      <tr bgcolor="#FFFFFF"><td><hr noshade size="1" style="border-top: 1px solid #ccc;"/></td></tr>
-      <tr><td>
-          <table width="95%" align="center">
-            <tr>
-              <td align="center">
-                <script type="text/javascript" src="../cimgmenu/cimgmenu.js"></script>
-                <div id="cimgmenu"></div>
-                <noscript>
-                  <a href="http://cimg.eu">Home</a>
-                  <a href="http://cimg.eu/download.shtml">Download</a>
-                  <a href="http://cimg.eu/screenshots.shtml">Screenshots</a>
-                  <a href="http://cimg.eu/reference/group__cimg__faq.html">FAQ</a>
-                  <a href="http://cimg.eu/reference/group__cimg__tutorial.html">Tutorial</a>
-                  <a href="http://cimg.eu/reference/index.html">Documentation</a>
-                  <a href="https://github.com/dtschump/CImg/issues">Forum</a>
-                  <a href="http://cimg.eu/links.shtml">Links</a>
-                </noscript>
-              </td>
-            </tr>
-          </table>
-      </td></tr>
-      <tr bgcolor="#FFFFFF"><td><hr noshade size="1" style="border-top: 1px solid #ccc;"/></td></tr>
-    </table>
-
-    <table align="center" cellpadding="12" cellspacing="0" width="1000" style="border-style:solid; border-width:0px; border-color:black" bgcolor="#FFFFFF">
-      <tr><td>
+<xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
+    <title>The CImg Library - C++ Template Image Processing Toolkit</title>
+    <meta content="David Tschumperle" name="author"></meta>
+    <link rel="shortcut icon" type="image/x-icon" href="http://cimg.eu/favicon.ico"></link>
+    <link rel="icon" type="image/png" href="favicon.png"></link>
+    <link href="doxygen.css" rel="stylesheet" type="text/css">
+    <link href="tabs.css" rel="stylesheet" type="text/css">
+    <style type="text/css">
+      <!--
+          body {background-color:#000000; font-family:sans-serif; }
+          a { font-weight:bold; color:#636363; }
+          a:active{text-decoration:none; color:#000000}
+          a:link{text-decoration:none; color:#000000}
+          a:visited{text-decoration:none; color:#000000}
+          a:hover{text-decoration:underline; color:#4E9F71}
+        -->
+    </style>
+    <script language="JavaScript" type="text/javascript">
+      <!-- Original:  Eric King (eric_andrew_king@hotmail.com) is used to display images in popup windows -->
+      <!-- Web Site:  http://redrival.com/eak/ -->
+      <!-- This script and many more are available free online at -->
+      <!-- The JavaScript Source!! http://javascript.internet.com -->
+      <!-- Begin
+           function NewWindow(mypage, myname, w, h, scroll) {
+           var winl = (screen.width - w) / 2;
+           var wint = (screen.height - h) / 2;
+           winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
+           win = window.open(mypage, myname, winprops)
+           if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
+           }
+           //  End -->
+    </script>
+
+    <script type="text/javascript" src="../jquery-1.11.0.min.js"></script>
+
+  </head>
+  <body>
+    <table align="center" cellpadding="0" cellspacing="0" width="1000" style="border-style:solid; border-width:0px; border-color:black" bgcolor="#DDDDDD">
+      <tr bgcolor="#FFFFFF"><td>
+          <center>
+            <br/><br/>
+            <a href="http://cimg.eu"><img src="http://cimg.eu/img/CImgLogo2.jpg" alt="" border="0" /></a><br/>
+          </center>
+          <center><font size="-1" color="#777777">
+              Latest stable version: <b><a href="https://cimg.eu/download.shtml">2.3.6</a></b>
+          </font></center>
+      </td></tr>
+      <tr bgcolor="#FFFFFF"><td><hr noshade size="1" style="border-top: 1px solid #ccc;"/></td></tr>
+      <tr><td>
+          <table width="95%" align="center">
+            <tr>
+              <td align="center">
+                <script type="text/javascript" src="../cimgmenu/cimgmenu.js"></script>
+                <div id="cimgmenu"></div>
+                <noscript>
+                  <a href="http://cimg.eu">Home</a>
+                  <a href="http://cimg.eu/download.shtml">Download</a>
+                  <a href="http://cimg.eu/screenshots.shtml">Screenshots</a>
+                  <a href="http://cimg.eu/reference/group__cimg__faq.html">FAQ</a>
+                  <a href="http://cimg.eu/reference/group__cimg__tutorial.html">Tutorial</a>
+                  <a href="http://cimg.eu/reference/index.html">Documentation</a>
+                  <a href="https://github.com/dtschump/CImg/issues">Forum</a>
+                  <a href="http://cimg.eu/links.shtml">Links</a>
+                </noscript>
+              </td>
+            </tr>
+          </table>
+      </td></tr>
+      <tr bgcolor="#FFFFFF"><td><hr noshade size="1" style="border-top: 1px solid #ccc;"/></td></tr>
+    </table>
+
+    <table align="center" cellpadding="12" cellspacing="0" width="1000" style="border-style:solid; border-width:0px; border-color:black" bgcolor="#FFFFFF">
+      <tr><td>
diff --git a/resources/cimg_buildpackage b/resources/cimg_buildpackage
index 65d3c3d628f4dd4559ea295d16060dc1e35deac6..bf1c661270924e4f990f069f36ba4b549d4a0b23 100755
--- a/resources/cimg_buildpackage
+++ b/resources/cimg_buildpackage
@@ -121,8 +121,10 @@ cd $SRC_DIR/html
 
 if [ "$1" == "final" ]; then
     gmic _update_header_html header.html,${VERSION},0
+    gmic _update_header_html header_reference.html,${VERSION},0
 else
     gmic _update_header_html header.html,${VERSION},1
+    gmic _update_header_html header_reference.html,${VERSION},1
 fi
 
 echo -e "\n** Log generated by 'doxygen' **\n\n">>$LOG_FILE