add delegate function imageViewerDidDismiss