update zoom images on detail page and improve the function on statistics