finish the photo view