Fixed a few bugs

Header image now displays properly, and I prevented a few warning
notifacions that appeared in the footer for php debug.