Update index.php

Support for different image formats.
A sixth line into the post md file gives information about the pic filemane and extension.