Refactored common code.
Added images: footer and header.