Fixed images url
Added saving of header and footer (not tested)