Fix the bugs of displaying images in detailed view.