started search and display images in index.php and upload photos