Fixed crashes on small devices in pdf image-galleryView