fixed the crash issue by using photoview.