image upload page and index page modified