added edit functionality, cleaned image show page