fix bugs of index.php. Added img to html part of file. Still lots of warnings.