pdf preview not working with image uploads but options menu working