base on react image viewer, Added a beforeShow method to React Image Viewer to enable the use of thumbnails for reduced data usage.