implemented upload/view jpgs on the index page