made index slightly nicer formatted
fixed image uploading