added links to previous page; gave img a max-width; removed ending php tags